package com.jspeed.sentensservice;

import javax.naming.Context;
import javax.naming.InitialContext;

public class SentensServiceLocator {

	public static SentensService getSentensService() {
		SentensService sentensService = null;
		try {
			final Context context = new InitialContext();
			//Object o = context.lookup("SentensServiceBean/remote");
			Object o = context.lookup("app/SentensServiceBean/remote");
			sentensService = (SentensService) o;
		} catch (Exception ex) {
			ex.printStackTrace();
		}
		return sentensService;
	}
}
